package com.ruoyi.manage.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.manage.domain.SysMechanism;

import java.util.List;

/**
 * @author 满杯百香果🍎
 */
public interface MechanismManageService extends IService<SysMechanism> {

    List<SysMechanism> getList();

//    List<SysMechanism> getUnderMechanismList(Long id);

    List<SysMechanism> getChildrenByParentId(Long id);

    List<SysMechanism> getListByMechanismCodeAndMechanismName(SysMechanism sysMechanism);

    Integer delMechanism(Long id);

    AjaxResult addMechanism(SysMechanism sysMechanism);
}
